
			<?php foreach ($blog as $arr) {
				if(count($arr['product']) != 0){ 
				echo '<strong>'. $arr['cat']. '</strong><br>';
				foreach ($arr['product'] as $product) {				
			
			echo '<div class="post">
				<div class="post-img"><a href="'.$frontend.'single_product/'.$product['product_id'].'"> <img src="'.base_url().'public/images/'.$product['product_image'].'" alt="" width="200" height="130"></a></div>
				<div class="excerpt">
					<h2><a href="'.$frontend.'single_product/'.$product['product_id'].'">'.$product['product_name'].' </a></h2>
					<div class="post-info"> <span class="fr"><a href="#">View: '.$product['no_of_time_viewed'].'</a></span>'.unix_to_human((int)$product['post_at']).'Posted in <a href="#">'.$arr['cat'].'</a></div>
					<p>'.word_limiter($product['product_article'],25).'<a href="#" class="read">read</a>
					</p>
				</div>
			</div>' ;
					}
				}
			}	?>
						
           <div class="clear"></div>
    <?php      echo $this->pagination->create_links(); ?>      